/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.h2t.loveplace.views;

import com.h2t.loveplace.main.LoveplaceMidlet;
import com.sun.lwuit.Command;
import com.sun.lwuit.Form;
import com.sun.lwuit.Image;
import com.sun.lwuit.events.ActionEvent;
import com.sun.lwuit.events.ActionListener;
import java.io.IOException;

/**
 *
 * @author TungHD
 */
public class ViewAboutUs extends Form implements ActionListener{
    private LoveplaceMidlet main;
  //  private Form fmAboutUs;
    private Command cmBack;
    
    public ViewAboutUs(LoveplaceMidlet main){
        this.main = main;
        //fmAboutUs = new Form("About Us");
        setTitle("About Us");
        cmBack = new Command("Back");
        //fmAboutUs.
                addCommandListener(this);
        
        try {
            //fmAboutUs.
                    setBgImage(Image.createImage("/photo/about-us.png"));
        } catch (IOException ex) {
            ex.printStackTrace();
        }
        setBackCommand(cmBack);
        addCommand(cmBack);
   //     fmAboutUs.show();
    }
    public void actionPerformed(ActionEvent ae) {
        Object obj = ae.getSource();
        if (obj == cmBack) {
            main.showMainView();
        }
    }
    
}
